using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PACKETPARSERMAX20.CORE;

namespace PACKETPARSERMAX20.CORE.DEFINITIONS
{
    public class SMSG_QUESTGIVER_REQUEST_ITEMS_DEF : DefinitionBase
    {

        public override bool Process()
        {
            ResetPosition();


            ulong npcGUID = ReadUInt64();
            UInt32 QuestId = ReadUInt32();
            string Title = ReadString();
            string RequestItemsText = ReadString();
            UInt32 unk = ReadUInt32();                                   // unknown
            UInt32 Emote = ReadUInt32();
            // Close Window after cancel
            UInt32 CloseOnCancel = ReadUInt32();
            UInt32 unk2 = ReadUInt32();                                   // unknown

            // Required Money
            UInt32 RewOrReqMoney = ReadUInt32();

            UInt32 ReqItemsCount = ReadUInt32();

            for (int i = 0; i < ReqItemsCount; i++)
            {

                UInt32 ReqItemId = ReadUInt32();
                UInt32 ReqItemCount = ReadUInt32();
                UInt32 DisplayInfoID = ReadUInt32();

            }

            UInt32 Completable = ReadUInt32();
            UInt32 unk3 = ReadUInt32();
            UInt32 unk4 = ReadUInt32();
            UInt32 unk5 = ReadUInt32();
 
            return Validate();
        }
    }
}

